<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>监管机构</title>
    <script src="./js/echarts.min.js"></script>
    <link rel="stylesheet" href="css/style.css">
</head>

<body>
    <header>
        <div class="heaer-inner">
            <div class="pull-left">
                <h3>
            <a href="">管理员界面</a>
         </h3>
            </div>
            <div class="pull-right">
                <ul>
                    <li><a href="index.html">首页</a></li>
                    <li class="active"><a href="monitor.html">监管机构</a></li>
                    <li><a href="health.html">医疗机构</a></li>
                </ul>
            </div>
        </div>

    </header>
    <div class="title">
        <div class="wrap">
            <h4>监管机构</h4>
        </div>
    </div>
    <div class="wrap">
        <div class="monitor">
            <div class="pull-right add"><a href="register.html">添加监管者</a></div>
            <table id="tb">
                <thead>
                    <th>监管机构</th>
                    <th>联系方式</th>
                </thead>
                <tbody>
                    <tr>
                        <td>开福区医馆委员会</td>
                        <td>010-222489</td>
                    </tr>
                    <tr>
                        <td>开福区医馆委员会</td>
                        <td>010-222489</td>
                    </tr>
                    <tr>
                        <td>开福区医馆委员会</td>
                        <td>010-222489</td>
                    </tr>
                    <tr>
                        <td>开福区医馆委员会</td>
                        <td>010-222489</td>
                    </tr>
                    <tr>
                        <td>开福区医馆委员会</td>
                        <td>010-222489</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <nav aria-label="Page navigation" class="pull-right">
            <ul class="pagination">
                <li>
                    <a href="#" aria-label="Previous">
                        <span aria-hidden="true"><</span>
                    </a>
                </li>
                <li class="active"><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li>
                    <a href="#" aria-label="Next">
                        <span aria-hidden="true">></span>
                    </a>
                </li>
            </ul>
        </nav>
        <div id="data">发送数据</div>
    </div>

    <script src="js/jquery.min.js"></script>
    <!--     <script type="text/javascript">
       var gg = {
            "childbirthday": "string",
            "childgender": "s",
            "childname": "string",
            "customerid": "string",
            "num": "string",
            "regulatorid": "string",
            "type": "string"
        }

        $(document).ready(function() {
            $("#data").click(function() {
                $.ajax({
                    url: "http://192.168.1.141:20000/api/customer/register",
                    async: false,
                    data: gg,
                    type: "POST",
                    contentType: "application/json;charset=utf-8",
                    complete: function() {},
                    success: function(result) {
                        console.log(complete);
                        console.log(result);
                    }
                });
                console.log(gg);
            });

            htmlobj = $.ajax({
                url: "http://192.168.1.141:20000/api/regulators",
                async: false,

            });
            var json = JSON.parse(htmlobj.responseText);
            $.each(json, function(idx, obj) {
                $('#tb tr:gt(0)').remove(); //删除之前的数据
                var s = '';
                for (var i = 0; i < json.length; i++) s += '<tr><td>' + json[i].name + '</td><td>' + json[i].mobile + '</td></tr>';
                $('#tb').append(s);
            });
        });
    </script>
-->
</body>

</html>
